package edu.whu.webgis.exception;

public class GenericException extends RuntimeException{

    private  int code;
    private String msg;
    public GenericException(ExceptionTypes exceptionTypes)
    {
        super();
        this.code = exceptionTypes.getCode();
        this.msg = exceptionTypes.getMsg();
    }

    public GenericException(int code, String msg)
    {
        super();
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
